package com.burns.flash.javafx.fxml.fxmlcontrollerclasses;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2022/02/22 13:45
 */

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

import java.net.URL;

public class FxmlControllerTest extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
//        MyFxmlController controller = new MyFxmlController();

        FXMLLoader loader = new FXMLLoader();
//        loader.setController(controller);
        loader.setLocation(new URL("file:///E:\\idea_workspace\\study\\java\\javafx\\javafx-flash-8\\src\\main\\java\\com\\burns\\flash\\javafx\\fxml\\fxmlcontrollerclasses\\SpecifyingControllerClassInFxml.fxml"));
        VBox vBox = loader.load();
        Scene scene = new Scene(vBox);
        primaryStage.setScene(scene);
        primaryStage.show();


    }
}
